# #### sms #####
# 腾讯云短信应用的app_id
import os

from FieeSaas.settings import BASE_DIR

TENCENT_SMS_APP_ID = 1400972169
# 腾讯云短信应用的app_key
TENCENT_SMS_APP_KEY = "279fc119ba7bc9d63592fa2c7e2ea930"
# 腾讯云短信应用的签名
TENCENT_SMS_SIGN = "FieeSaas"

TENCENT_SMS_TEMPLATE = {
    'register': 2385461,
    'login': 23
}

# 腾讯cos的id和key
TENCENT_COS_ID = 'AKIDa2GYfaHk392hBUdfYTNQGxRiokU0JOGu'
TENCENT_COS_KEY = 'T1OXqEHAsQGwRkrmU0KRL1udBWfkeQ5Z'

# 配置文件 local_settings.py
CACHES = {
    "default": {
        "BACKEND": "django_redis.cache.RedisCache",
        "LOCATION": "redis://192.168.128.1:6379",  # 安装redis的主机的IP和端口
        "OPTIONS": {
            "CLIENT_CLASS": "django_redis.client.DefaultClient",
            "CONNECTION_POOL_KWARGS": {
                "max_connections": 1000,
                "encoding": "utf-8"
            },
            # "PASSWORD": "1224"  # redis密码
        }
    }
}

# import os
#
# BASE_DIR = os.path.dirname(os.path.abspath(__file__))  # 假设需要 BASE_DIR 定义，若已有定义可忽略

ALI_GATEWAY = "https://openapi-sandbox.dl.alipaydev.com/gateway.do"
ALI_PRI_KEY_PATH = os.path.join(BASE_DIR, 'files/应用私钥2048.txt')
ALI_PUB_KEY_PATH = os.path.join(BASE_DIR, 'files/支付宝公钥.txt')
ALI_NOTIFY_URL = "http://127.0.0.1:8000/pay/notify/"
ALI_RETURN_URL = "http://127.0.0.1:8000/pay/notify/"
ALI_APPID = "2021000147673761"